package com.nowcoder.community;

import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
// 主配置类
@SpringBootApplication
public class CommunityApplication {

    @PostConstruct
    void init() {
        // 解决netty启动冲突问题
        System.setProperty("io.netty.availableProcessors", "false");
    }

    public static void main(String[] args) {
        SpringApplication.run(CommunityApplication.class, args);
    }
}
